import Vue from 'vue';
import VueRouter from 'vue-router'
import Main from './Main.vue';
import Home from './components/Home.vue';
import CompView from './components/CompView.vue';
import QueryView from './components/QueryView.vue';
Vue.use(VueRouter);

const router = new VueRouter({
    routes: [
        {
            path: '/', component: Main ,
            children :[
                {name :"home", path: "" , component: Home   },
				{name :"objectview", path: "/view/:databaseid/:scema/:type/:objectname" , component: CompView   },
				{name :"queryview", path: "/query" , component: QueryView   }
            ]
        }
    ]
})

const app = new Vue({
    router
}).$mount('#app')